<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
  <meta name="keywords" content="admin, dashboard, bootstrap, template, flat, modern, theme, responsive, fluid, retina, backend, html5, css, css3">
  <meta name="description" content="">
  <meta name="author" content="ThemeBucket">
  <link rel="shortcut icon" href="#" type="image/png">

  <title>企业信息</title>

  <!--icheck-->
  <link href="/js/iCheck/skins/minimal/minimal.css" rel="stylesheet">
  <link href="/js/iCheck/skins/square/square.css" rel="stylesheet">
  <link href="/js/iCheck/skins/square/red.css" rel="stylesheet">
  <link href="/js/iCheck/skins/square/blue.css" rel="stylesheet">



  <!--dashboard calendar-->
  <link href="/css/clndr.css" rel="stylesheet">

  <!--Morris Chart CSS -->
  <link rel="stylesheet" href="/js/morris-chart/morris.css">

  <!--common-->
  <link href="/css/style.css" rel="stylesheet">
  <link href="/css/style-responsive.css" rel="stylesheet">

  <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
  <!--[if lt IE 9]>
  <script src="/js/html5shiv.js"></script>
  <script src="/js/respond.min.js"></script>
  <![endif]-->
</head>
<body class="sticky-header">

    <!-- left side start-->
    <div class="left-side sticky-left-side">

        <!--logo and iconic logo start-->
        <div class="logo">
            <a  onclick="clicklogo()"><img src="/images/logo.png" alt="" style="width: 70%;height: 70%"></a>
        </div>

        <div class="logo-icon text-center">
            <a href="index.html"><img src="/images/logo_icon.png" alt=""></a>
        </div>
        <!--logo and iconic logo end-->

        <div class="left-side-inner">

            <!-- visible to small devices only -->
            <div class="visible-xs hidden-sm hidden-md hidden-lg">
                <div class="media logged-user">

                </div>

                <h5 class="left-nav-title">商院就业系统</h5>
                <ul class="nav nav-pills nav-stacked custom-nav">
                    <li class="menu-list"><a href=""><i class="fa fa-book"></i> <span>个人中心</span></a>
                        <ul class="sub-menu-list">
                            <li><a data-toggle="modal" data-target="#myModalInfo" onclick="selectStuBaseInfo()"><i class="fa fa-user"></i> 基础信息</a></li>
                            <li><a data-toggle="modal" data-target="#myModalStatus" onclick="selectStuStatusInfo()"><i class="fa fa-book"></i>学籍信息</a></li>
                            <li><a data-toggle="modal" data-target="#myModalJob" onclick="selectStuJobInfo()"><i class="fa fa-signal"></i> 就业信息</a></li>
                            <li><a data-toggle="modal" data-target="#myModal" ><i class="fa fa-edit"></i>修改密码</a></li>
                            <li><a onclick="deleteAcount()"><i class="fa fa-cog"></i>注销账号</a></li>
                            <li><a onclick="loginout()"><i class="fa fa-sign-out"></i> 退出登录</a></li>
                        </ul>
                    </li>
                </ul>
            </div>

            <!--sidebar nav start-->
            <ul class="nav nav-pills nav-stacked custom-nav">

                <li class="menu-list"><a href=""><i class="fa fa-book"></i> <span>我的校招</span></a>
                    <ul class="sub-menu-list">
                        <li><a  onclick="resumeInfo()">简历信息</a></li>
                    </ul>

                    <ul class="sub-menu-list">
                        <li><a  onclick="TimeTable()">时间表</a></li>
                    </ul>

                </li>

                <li class="menu-list"><a href=""><i class="fa fa-book"></i> <span>校招企业</span></a>
                    <ul class="sub-menu-list">

                        <li><a  onclick="attentcompshow()"> 我的收藏</a></li>
                        <li><a onclick="stuOnline()">我的网申</a></li>

                    </ul>
                </li>

                <li class="menu-list"><a href="#"><i class="fa fa-map-marker"></i> <span>招聘信息</span></a>
                    <ul class="sub-menu-list">
                        <li><a onclick="compshow()">企业信息</a></li>
                        <li><a  onclick="clickComp()">招聘信息</a></li>
                        <li><a  onclick="clicklogo()">信息统计</a></li>

                    </ul>
                </li>

            </ul>
            <!--sidebar nav end-->

        </div>
    </div>
    <!-- left side end-->
    
    <!-- main content start-->
    <div class="main-content" >

        <!-- header section start-->
        <div class="header-section">

            <!--toggle button start-->
            <a class="toggle-btn"><i class="fa fa-bars"></i></a>
            <!--toggle button end-->

            <!--search start-->
            <form class="searchform" action="index.html" method="post">
                <input type="text" class="form-control" name="keyword" placeholder="查询" />
            </form>
            <!--search end-->

            <!--notification menu start -->
            <div class="menu-right">
                <ul class="notification-menu">
                    <li>
                        <a href="#" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
                            <span id="currentuser"></span>! 个人中心
                            <span class="caret"></span>
                        </a>
                        <ul class="dropdown-menu dropdown-menu-usermenu">
                            <li><a data-toggle="modal" data-target="#myModalInfo" onclick="selectStuBaseInfo()"><i class="fa fa-user"></i> 基础信息</a></li>
                            <li><a data-toggle="modal" data-target="#myModalStatus" onclick="selectStuStatusInfo()"><i class="fa fa-book"></i>学籍信息</a></li>
                            <li><a data-toggle="modal" data-target="#myModalJob" onclick="selectStuJobInfo()"><i class="fa fa-signal"></i> 就业信息</a></li>
                            <li><a data-toggle="modal" data-target="#myModal" ><i class="fa fa-edit"></i>修改密码</a></li>
                            <li><a onclick="deleteAcount()"><i class="fa fa-cog"></i>注销账号</a></li>
                            <li><a onclick="loginout()"><i class="fa fa-sign-out"></i> 退出登录</a></li>
                        </ul>
                    </li>

                </ul>
            </div>


        </div>

        <div class="page-heading">

            <h4 class="text-muted" style="margin-top: 1%;margin-left:1%;font-size:22px">企业信息展示</h4><br>
            <div >
                <table id="tableCompInfo" ></table>
            </div>

        <div class="wrapper">


        </div>
        <!--body wrapper end-->

        <!--footer section start-->
        <footer style = 'margin-top:500px'>
            商洛学院信息管理与信息系统毕业设计
        </footer>
        <!--footer section end-->
        </div>
    </div>
    </div>
    <!-- main content end-->

<!--用户修改密码-->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <h4 class="modal-title" id="myModalLabel">
                    用户密码修改
                </h4>
            </div>
            <div class="modal-body">
                <input type="password" class="form-control" placeholder="原密码" autofocus name="u_oldpwd"  id="u_oldpwd" onblur="checkpwd()"><br><br>
                <input type="password" class="form-control" placeholder="新密码" name="u_newpwd" id="u_newpwd"><br><br>
                <input type="password" class="form-control" placeholder="确认新密码" name="u_surenewpwd" id="u_surenewpwd"><br><br>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭
                </button>
                <button type="button" class="btn btn-primary" onclick="submitpwd()">
                    提交更改
                </button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
</div>

<!--学生信息完善-->
<div class="modal fade" id="myModalInfo" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <h4 class="modal-title" id="myModalLabeInfo">
                    基础信息完善
                </h4>
            </div>
            <div class="modal-body">
              <form action="" id="myFormInfo">
                  <div class="form-group">
                      <label class="col-sm-2 control-label" for="stu_name" style="margin-top: 8px">姓名:<span style="color:red">*</span></label>
                      <div class="col-sm-10">
                          <input type="text" class="form-control" placeholder="姓名" autofocus name="stu_name"  id="stu_name">
                      </div>
                  </div><br>

                  <div class="form-group"  style="margin-top: 30px">
                      <label class="col-sm-2 control-label" for="stu_sex" style="margin-top: 8px">性别:<span style="color:red">*</span></label>
                      <div class="col-sm-4">
                          <select class="form-control" id="stu_sex">
                              <option id="stu_sex1" name="stu_sex" value="男">男</option>
                              <option id="stu_sex2" name="stu_sex" value="女">女</option>
                          </select>
                      </div>
                      <label class="col-sm-2 control-label" for="stu_politics" style="margin-top: 8px">政治面貌:</label>
                      <div class="col-sm-4">
                          <select class="form-control" id="stu_politics">
                              <option id="zz1" name="stu_politics" value="共青团员">共青团员</option>
                              <option id="zz2" name="stu_politics" value="普通群众">普通群众</option>
                              <option id="zz3" name="stu_politics" value="预备党员">预备党员</option>
                              <option id="zz4" name="stu_politics" value="共产党员">共产党员</option>
                              <option id="zz5" name="stu_politics" value="其他党派">其他党派</option>
                          </select>
                      </div>
                  </div><br>
                  <div class="form-group" style="margin-top: 30px">
                      <label class="col-sm-2 control-label" for="stu_idcard" style="margin-top: 8px">身份证:<span style="color:red">*</span></label>
                      <div class="col-sm-10">
                          <input type="text" class="form-control" placeholder="身份证号" name="stu_idcard" id="stu_idcard">
                      </div>
                  </div><br>
                  <div class="form-group" style="margin-top: 30px">
                      <label class="col-sm-2 control-label" for="stu_tel" style="margin-top: 8px">手机号:<span style="color:red">*</span></label>
                      <div class="col-sm-10">
                          <input type="text" class="form-control" placeholder="手机号码" name="stu_tel" id="stu_tel">
                      </div>
                  </div><br>
                  <div class="form-group" style="margin-top: 30px">
                      <label class="col-sm-2 control-label" for="stu_qq" style="margin-top: 8px">QQ号码:</label>
                      <div class="col-sm-10">
                          <input type="text" class="form-control" placeholder="QQ号码" name="stu_qq" id="stu_qq">
                      </div>
                  </div><br>
                  <div class="form-group" style="margin-top: 30px">
                      <label class="col-sm-2 control-label" for="stu_email" style="margin-top: 8px">电子邮箱:</label>
                      <div class="col-sm-10">
                          <input type="text" class="form-control" placeholder="电子邮箱" name="stu_email" id="stu_email">
                      </div>
                  </div><br>

                  <div class="form-group" style="margin-top: 30px">
                      <label class="col-sm-2 control-label" for="stu_province" style="margin-top: 8px">家庭住址:</label>
                      <div class="col-sm-3">
<!--                          <input type="text" class="form-control" autofocus name="stu_province"  id="stu_province" value="">-->
                          <select class="form-control" autofocus name="stu_province"  id="stu_province" value=""  onchange="selectCity()">

                          </select>
                      </div>
                      <div class="col-sm-3">
<!--                          <input type="text" class="form-control" autofocus name="stu_city"  id="stu_city" value="">-->
                          <select class="form-control" autofocus name="stu_city"  id="stu_city" value=""  onchange="selectCounty()">

                          </select>
                      </div>
                      <div class="col-sm-4">
<!--                          <input type="text" class="form-control" autofocus name="stu_county"  id="stu_county" value="">-->
                          <select class="form-control" autofocus name="stu_county"  id="stu_county" value=""  >

                          </select>
                      </div>
                  </div><br>
                 <div class="form-group" style="margin-top: 30px">
                     <label class="col-sm-2 control-label" for="stu_address" style="margin-top: 8px">详细住址:</label>
                     <div class="col-sm-10">
                         <input type="text" class="form-control" placeholder="详细住址" name="stu_address" id="stu_address">
                     </div>
                 </div><br>
<!--                  <div class="form-group" style="margin-top: 30px">-->
<!--                      <label class="col-sm-2 control-label" for="stu_fromaddress" style="margin-top: 8px">生源地:</label>-->
<!--                      <div class="col-sm-10">-->
<!--                          <input type="text" class="form-control" placeholder="生源地地址" name="stu_fromaddress" id="stu_fromaddress">-->
<!--                      </div>-->
<!--                  </div><br>-->
                  <div class="form-group" style="margin-top: 30px">
                      <label class="col-sm-2 control-label" for="stu_fromprovince" style="margin-top: 8px">生源地:</label>
                      <div class="col-sm-5">
                          <!--                          <input type="text" class="form-control" autofocus name="stu_province"  id="stu_province" value="">-->
                          <select class="form-control" autofocus name="stu_fromprovince"  id="stu_fromprovince" value=""  onchange="selectFromCity()">

                          </select>
                      </div>
                      <div class="col-sm-5">
                          <!--                          <input type="text" class="form-control" autofocus name="stu_city"  id="stu_city" value="">-->
                          <select class="form-control" autofocus name="stu_fromcity"  id="stu_fromcity" value=""  >

                          </select>
                      </div>
                  </div><br>
                  <div class="form-group" style="margin-top: 30px">
                      <label class="col-sm-2 control-label" for="stu_ec" style="margin-top: 8px">联系人:</label>
                      <div class="col-sm-10">
                          <input type="text" class="form-control" placeholder="紧急联系人" name="stu_ec" id="stu_ec">
                      </div>
                  </div><br>
                  <div class="form-group" style="margin-top: 30px">
                      <label class="col-sm-2 control-label" for="stu_ectel" style="margin-top: 8px">联系电话:</label>
                      <div class="col-sm-10">
                          <input type="text" class="form-control" placeholder="紧急联系人电话" name="stu_ectel" id="stu_ectel">
                      </div>
                  </div><br>
                  <div class="form-group" style="margin-top: 30px">
                      <label class="col-sm-2 control-label" for="stu_counselor" style="margin-top: 8px">辅导员:<span style="color:red">*</span></label>
                      <div class="col-sm-10">
                          <input type="text" class="form-control" placeholder="辅导员姓名" name="stu_counselor" id="stu_counselor">
                      </div>
                  </div><br><br>

              </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭
                </button>
                <button type="button" class="btn btn-primary" onclick="submitStuBaseInfo()">
                    保存信息
                </button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
</div>
<!-- Placed js at the end of the document so the pages load faster -->
<!--学生学籍信息完善-->
<div class="modal fade" id="myModalStatus" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <h4 class="modal-title" id="myModalLabeStatus">
                    学籍信息完善
                </h4>
            </div>
            <div class="modal-body">
              <form action="" id="myFormStatus">
                  <div class="form-group">
                      <label class="col-sm-2 control-label" for="stu_code" style="margin-top: 8px">学号:<span style="color:red">*</span></label>
                      <div class="col-sm-10">
                          <input type="text" class="form-control" placeholder="学号" autofocus name="stu_code"  id="stu_code">
                      </div>
                  </div><br>
                  <div class="form-group" style="margin-top: 30px">
                      <label class="col-sm-2 control-label" for="stu_schoolname" style="margin-top: 8px">学校名称:</label>
                      <div class="col-sm-10">
                          <input type="text" class="form-control"  name="stu_schoolname" id="stu_schoolname" value="商洛学院" readonly="readonly">
                      </div>
                  </div><br>
                  <div class="form-group" style="margin-top: 30px">
                      <label class="col-sm-2 control-label" for="stu_department" style="margin-top: 8px">院系:<span style="color:red">*</span></label>
                      <div class="col-sm-10">
<!--                          <input type="text" class="form-control" placeholder="所在院系" name="stu_department" id="stu_department">-->
                          <select class="form-control" placeholder="所在院系" name="stu_department" id="stu_department" onchange="selectProfession()">

                          </select>
                      </div>
                  </div><br>
                  <div class="form-group" style="margin-top: 30px">
                      <label class="col-sm-2 control-label" for="stu_profession" style="margin-top: 8px">专业:<span style="color:red">*</span></label>
                      <div class="col-sm-10">
<!--                          <input type="text" class="form-control" placeholder="专业" name="ccccc" id="stu_profession">-->
                          <select class="form-control" placeholder="专业" name="stu_profession" id="stu_profession" >

                          </select>
                      </div>
                  </div><br>

                  <div class="form-group" style="margin-top: 30px">
                      <label class="col-sm-2 control-label" for="stu_class" style="margin-top: 8px">班级:<span style="color:red">*</span></label>
                      <div class="col-sm-10">
                          <input type="text" class="form-control" placeholder="班级" name="stu_class" id="stu_class">
                      </div>
                  </div><br>

                <div class="form-group" style="margin-top: 30px">
                    <label class="col-sm-2 control-label" for="stu_education" style="margin-top: 8px">学历:<span style="color:red">*</span></label>
                    <div class="col-sm-4">
                        <select class="form-control" id="stu_education">
                            <option id="status1" name="1">大学本科</option>
                            <option id="status2" name="2">硕士研究生</option>
                            <option id="status3" name="3">博士研究生</option>
                            <option id="status4" name="4">大专</option>
                            <option id="status5" name="5">高中</option>
                            <option id="status6" name="6">初中</option>
                            <option id="status7" name="7">其他</option>
                        </select>
                    </div>
                    <label class="col-sm-2 control-label" for="stu_inway" style="margin-top: 8px">大学学制:</label>
                    <div class="col-sm-4">
                        <select class="form-control" id="stu_inway">
                            <option id="inway1" name="1">普通4年</option>
                            <option id="inway2" name="2">专升本2年</option>
                            <option id="inway3" name="3">特殊5年</option>
                        </select>
                    </div>
                </div><br>
                <div class="form-group" style="margin-top: 30px">
                    <label class="col-sm-2 control-label" for="stu_inTime" style="margin-top: 8px">入学时间:</label>
                    <div class="col-sm-4">
<!--                        <input type="datetime-local" class="form-control" autofocus name="stu_inTime"  id="stu_inTime" value="">-->
                        <input readonly="readonly" class="form-control" type="text" name="stu_inTime" id="stu_inTime" value="" />
                    </div>
                    <label class="col-sm-2 control-label" for="stu_outTime" style="margin-top: 8px">毕业时间:</label>
                    <div class="col-sm-4">
                        <input readonly="readonly" class="form-control" type="text" name="stu_outTime" id="stu_outTime" value="" />
<!--                        <input type="datetime-local" class="form-control" autofocus name="stu_outTime"  id="stu_outTime" value="">-->
                    </div>
                </div><br><br>

            <div class="modal-footer" >
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭
                </button>
                <button type="button" class="btn btn-primary" onclick="submitStuStatusInfo()">
                    保存信息
                </button>
            </div>
          </form>
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
    </div>
</div>
<!-- Placed js at the end of the document so the pages load faster -->


<div class="modal fade" id="myModalJob" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <h4 class="modal-title" id="myModalLabeJob">
                    就业信息完善
                </h4>
            </div>
            <div class="modal-body">
                <form  action="" id="myFormJob">

                    <div class="form-group" >
                        <label class="col-sm-2 control-label" for="stu_compjobdirection" style="margin-top: 8px">毕业去向:</label>
                        <div class="col-sm-10">
                            <select class="form-control" placeholder="毕业去向" name="stu_compjobdirection" id="stu_compjobdirection" onchange="selectemploymentStatus()">
                            </select>
                        </div>
                    </div><br>
                <div class="form-group" style="margin-top: 30px">
                    <label class="col-sm-2 control-label" for="stu_compjobstatus" style="margin-top: 8px">就业状态:</label>
                    <div class="col-sm-10">
                        <select class="form-control" id="stu_compjobstatus">

                        </select>
                    </div>

                </div><br>
                    <div class="form-group" style="margin-top: 30px">

                        <label class="col-sm-2 control-label" for="stu_updateagreement" style="margin-top: 8px">上传协议:</label>
                        <div class="col-sm-10">
                            <button type="button" class="btn" id="stu_updateagreement">点击上传三方协议</button>
                        </div>
                    </div><br>

                    <div class="form-group" style="margin-top: 30px">
                        <label class="col-sm-2 control-label" for="stu_compagreement" style="margin-top: 8px">三方编号:</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" placeholder="三方协议书编号" name="stu_compagreement" id="stu_compagreement">
                        </div>
                    </div><br>
                    <div class="form-group" style="margin-top: 30px">
                        <label class="col-sm-2 control-label" for="stu_compname" style="margin-top: 8px">单位名称:</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" placeholder="单位名称" autofocus name="stu_compname"  id="stu_compname">
                        </div>
                    </div><br>

                    <div class="form-group" style="margin-top: 30px">
                        <label class="col-sm-2 control-label" for="stu_compcode" style="margin-top: 8px">信用代码:</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" placeholder="统一社会信用代码/组织机构代码" name="stu_compcode" id="stu_compcode">
                        </div>
                    </div><br>

                    <div class="form-group" style="margin-top: 30px">
                        <label class="col-sm-2 control-label" for="stu_compnature" style="margin-top: 8px">单位性质:</label>
                        <div class="col-sm-10">
<!--                            <input type="text" class="form-control" placeholder="单位性质" name="stu_compnature" id="stu_compnature">-->
                            <select class="form-control" placeholder="单位性质" name="stu_compnature" id="stu_compnature" >

                            </select>
                        </div>
                    </div><br>

                    <div class="form-group" style="margin-top: 30px">
                        <label class="col-sm-2 control-label" for="stu_compkind" style="margin-top: 8px">单位行业:</label>
                        <div class="col-sm-10">
<!--                            <input type="text" class="form-control" placeholder="单位行业种类" name="stu_compkind" id="stu_compkind">-->
                            <select class="form-control" placeholder="单位行业" name="stu_compkind" id="stu_compkind" >

                            </select>
                        </div>
                    </div><br>
                    <div class="form-group" style="margin-top: 30px">
                        <label class="col-sm-2 control-label" for="stu_compprovince" style="margin-top: 8px">单位地址:</label>
                        <div class="col-sm-3">
                            <!--                          <input type="text" class="form-control" autofocus name="stu_province"  id="stu_province" value="">-->
                            <select class="form-control" autofocus name="stu_compprovince"  id="stu_compprovince" value=""  onchange="selectCompCity()">

                            </select>
                        </div>
                        <div class="col-sm-3">
                            <!--                          <input type="text" class="form-control" autofocus name="stu_city"  id="stu_city" value="">-->
                            <select class="form-control" autofocus name="stu_compcity"  id="stu_compcity" value=""  onchange="selectCompCounty()">

                            </select>
                        </div>
                        <div class="col-sm-4">
                            <!--                          <input type="text" class="form-control" autofocus name="stu_county"  id="stu_county" value="">-->
                            <select class="form-control" autofocus name="stu_compcounty"  id="stu_compcounty" value=""  >

                            </select>
                        </div>
                    </div><br>

                    <div class="form-group" style="margin-top: 30px">
                        <label class="col-sm-2 control-label" for="stu_compaddress" style="margin-top: 8px">详细地址:</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" placeholder="详细地址" name="stu_compaddress" id="stu_compaddress">
                        </div>
                    </div><br>
                    <div class="form-group" style="margin-top: 30px">
                        <label class="col-sm-2 control-label" for="stu_compjob" style="margin-top: 8px">个人岗位:</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" placeholder="个人岗位" name="stu_compjob" id="stu_compjob">
                        </div>
                    </div><br>
                    <div class="form-group" style="margin-top: 30px">
                        <label class="col-sm-2 control-label" for="stu_compjobguide" style="margin-top: 8px">指导老师:</label>
                        <div class="col-sm-10">
<!--                            <input type="text" class="form-control" placeholder="指导老师" name="stu_compjobguide" id="stu_compjobguide">-->
                            <select class="form-control" placeholder="指导老师" name="stu_compjobguide" id="stu_compjobguide">

                            </select>
                        </div>
                    </div><br><br>


                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">关闭
                    </button>
                    <button type="button" class="btn btn-primary" onclick="submitStuJobInfo()">
                        保存信息
                    </button>
                </div>
              </form>
            </div>
        </div>
    </div>
</div>
    <!-- Placed js at the end of the document so the pages load faster
    -->
</div>

        <script src="/js/jquery-1.10.2.min.js"></script>
<script src="/js/jquery-ui-1.9.2.custom.min.js"></script>
<script src="/js/jquery-migrate-1.2.1.min.js"></script>
<script src="/js/bootstrap.min.js"></script>
<script src="/js/modernizr.min.js"></script>
<script src="/js/jquery.nicescroll.js"></script>

<!--easy pie chart-->
<script src="/js/easypiechart/jquery.easypiechart.js"></script>
<script src="/js/easypiechart/easypiechart-init.js"></script>

<!--Sparkline Chart-->
<script src="/js/sparkline/jquery.sparkline.js"></script>
<script src="/js/sparkline/sparkline-init.js"></script>

<!--icheck -->
<script src="/js/iCheck/jquery.icheck.js"></script>
<script src="/js/icheck-init.js"></script>

<!-- jQuery Flot Chart-->
<script src="/js/flot-chart/jquery.flot.js"></script>
<script src="/js/flot-chart/jquery.flot.tooltip.js"></script>
<script src="/js/flot-chart/jquery.flot.resize.js"></script>


<!--Morris Chart-->
<script src="/js/morris-chart/morris.js"></script>
<script src="/js/morris-chart/raphael-min.js"></script>

<!--Calendar-->
<script src="/js/calendar/clndr.js"></script>
<script src="/js/calendar/evnt.calendar.init.js"></script>
<script src="/js/calendar/moment-2.2.1.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.5.2/underscore-min.js"></script>
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
<!--common scripts for all pages-->
<script src="/js/scripts.js"></script>
<link rel="stylesheet" type="text/css" href="/css/bootstrap-datetimepicker.css" />
<script src="/js/bootstrap-datetimepicker.js" type="text/javascript"></script>
<!--Dashboard Charts-->
<script src="/js/dashboard-chart-init.js"></script>

<script src="/js/dashboard-chart-init.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/echarts/dist/echarts.min.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/echarts-gl/dist/echarts-gl.min.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/echarts-stat/dist/ecStat.min.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/echarts/dist/extension/dataTool.min.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/echarts/map/js/china.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/echarts/map/js/world.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/echarts/dist/extension/bmap.min.js"></script>
    <script type="text/javascript" src="http://api.map.baidu.com/api?v=3.0&ak=wMTXdYCQbDQsMGo4NcR5jO645sPOla7g"></script>
    <script src="/js/js/bootstrap-table.min.js" type="text/javascript"></script>
    <script src="/js/js/bootstrap-table-zh-CN.min.js" type="text/javascript"></script>
    <script src="/js/js/bootstrap-table-editable.js" type="text/javascript"></script>
    <script src="/js/js/bootstrap-editable.min.js" type="text/javascript"></script>
<script type="text/javascript">


    $('#stu_inTime').datetimepicker({
        minView: "month",
        language: 'zh-CN',
        format: 'yyyy-mm-dd',
        todayBtn: 1,
        autoclose: true,
        startDate:'2015-09-01'
    });
    $('#stu_outTime').datetimepicker({
        minView: "month",
        language: 'zh-CN',
        format: 'yyyy-mm-dd',
        todayBtn: 1,
        autoclose: true,
        startDate:'2015-09-01'
    });


    $("#tableCompInfo").bootstrapTable({ // 对应table标签的id
        url: "stuOperat/selectAllComp",
        method: 'post',
        cache: false,
        striped: true,
        pagination: true,
        pageSize: 20,
        pageNumber: 1,
        pageList: [10,20,30],
        search: false,
        showColumns: false,
        clickToSelect: true,
        smartDisplay: false,
        columns: [{
            checkbox: true
        },
            {
                field: "id",
                title: "id",
                align: "center",
                valign: "middle",
                sortable: "true",
                visible: false
            },
            {
                field: "comp_code",
                title: "统一社会代码",
                align: "center",
                valign: "middle",
                sortable: "true",
            }, {
                field: "comp_name",
                title: "公司名称",
                align: "center",
                valign: "middle",
                sortable: "true"
            }, {
                field: "comp_kind",
                title: "公司行业",
                align: "center",
                valign: "middle",
                sortable: "true"
            }, {
                field: "comp_nature",
                title: "公司性质",
                align: "center",
                valign: "middle",
                sortable: "true"
            }, {
                field: "comp_province",
                title: "公司地址",
                align: "center",
                valign: "middle",
                sortable: "true"
            }, {
                field: "comp_contact",
                title: "招聘联系人",
                align: "center",
                valign: "middle",
                sortable: "true"
            }, {
                field: "comp_contacttel",
                title: "联系电话",
                align: "center",
                valign: "middle",
                sortable: "true"
            }, {
                field: "u_acount",
                title: "使用账号",
                align: "center",
                valign: "middle",
                sortable: "true"
            }
            , {
                field: "",
                title: "操作",
                align: "center",
                valign: "middle",
                formatter: function (value, row, index) {
                    return '<button stu_code="' + row.stu_code + '"  data-toggle="modal"  data-target="#myModalChooseInfo" type="button" class="btn btn-info" onclick="stuClickInfo(this)">详情</button>' +
                        '&nbsp;&nbsp;<button comp_name="' + row.comp_name + '"  data-toggle="modal"  data-target="#myModalTalk" type="button" class="btn btn-success" onclick="stuAttentComp(this)">关注</button>';
                }
            }
        ],
        formatNoMatches: function() {
            return '';
        },
    });

    function stuAttentComp(e){
        var comp_name = $(e).attr('comp_name');
        $.ajax({
            url : "/stuOperat/stuAttentComp/" + "?comp_name="+comp_name,//url 统一资源定位符
            type : "POST",
            success : function(result) {
                if(result == '关注成功'){
                    swal("关注成功!", "请在我的收藏里面查看信息", "success");
                }else{
                    swal("已关注!", "请勿重复关注!", "error");
                }
            },
            error : function(data) {

            }
        });
    }


    var provenceArr = ["北京市","天津市","上海市","重庆市","河北省","山西省","内蒙古","辽宁省","吉林省","黑龙江省","江苏省","浙江省","安徽省","福建省","江西省","山东省","河南省","湖北省","湖南省","广东省","广西","海南省","四川省","贵州省","云南省","西藏","陕西省","甘肃省","青海省","宁夏","新疆","香港","澳门","台湾省"];
    var cityArr = new Array();
    cityArr["陕西省"] = ["西安市","延安市","铜川市","渭南市","咸阳市","宝鸡市","汉中市","榆林市","安康市","商洛市"];
    cityArr["山西省"] = ["太原市","临汾市","大同市","吕梁市","阳泉市","运城市","晋中市","长治市","晋城市","朔州市","忻州市"];
    cityArr["北京市"] = ["北京市"];
    cityArr["上海市"] = ["上海市"];
    cityArr["天津市"] = ["天津市"];
    cityArr["重庆市"] = ["重庆市"];
    cityArr["广东省"] = ["广州市","深圳市","佛山市","东莞市","中山市","珠海市","江门市","肇庆市","惠州市","汕头市","潮州市","揭阳市","阳江市","韶关市","梅州市","清远市"];
    cityArr["河北省"] = ["河北省"];
    cityArr["山西省"] = ["山西省"];
    cityArr["内蒙古"] = ["内蒙古"];
    cityArr["辽宁省"] = ["辽宁省"];
    cityArr["吉林省"] = ["吉林省"];
    cityArr["黑龙江省"] = ["黑龙江省"];
    cityArr["江苏省"] = ["江苏省"];
    cityArr["浙江省"] = ["浙江省"];
    cityArr["安徽省"] = ["安徽省"];
    cityArr["福建省"] = ["福建省"];
    cityArr["浙江省"] = ["浙江省"];
    var countyArr = new Array();
    countyArr["西安市"] = ["新城区","碑林区","莲湖区","灞桥区","未央区","雁塔区","阎良区","临潼区","长安区","蓝田县","周至县","户县","高陵区"];
    countyArr["咸阳市"] = ["渭城区","秦都区","礼泉县","乾县","兴平","三原县","泾阳县","永寿县","彬县","长武县","旬邑县","淳化县","武功县"];
    countyArr["商洛市"] = ["商州区","洛南县","丹凤县","商南县","山阳县","镇安县","柞水县"];
    countyArr["渭南市"] = ["临渭区","华州区","潼关县","大荔县","蒲城县","澄城县","白水县","合阳县","富平县","韩城","华阴"];
    countyArr["延安市"] = ["宝塔区","延长县","延川县","子长县","安塞县","志丹县","吴起县","甘泉县","富县","洛川县","宜川县","黄龙县","黄陵县"];
    countyArr["铜川市"] = ["王益区","印台区","耀州区","宜君县"];
    countyArr["宝鸡市"] = ["渭滨区","金台区","陈仓区","宝鸡蟠龙新区","宝鸡陆港新区","岐山县","扶风县","眉县","凤翔县","陇县","千阳县","麟游县","凤县","太白县"];
    countyArr["汉中市"] = ["汉台区","南郑县","城固县","洋县","西乡县","勉县","宁强县","略阳县","镇巴县","留坝县" ,"佛坪县"];
    countyArr["榆林市"] = ["榆阳区","横山区","神木县","绥德县","靖边县","定边县","府谷县","子洲县","米脂县","吴堡县","清涧县","佳县"];
    countyArr["安康市"] = ["汉滨区","汉阴县","石泉县","宁陕县","紫阳县","岚皋县","平利县","镇坪县","旬阳县","白河县"];
    countyArr["北京市"] = ["东城区","西城区","海淀区","朝阳区","丰台区","石景山区","门头沟区","通州区","顺义区","房山区","大兴区","昌平区","怀柔区","平谷区","密云区","延庆区"];
    countyArr["上海市"] = ["黄浦区","浦东新区","徐汇区","长宁区","静安区","普陀区","虹口区","杨浦区","闵行区","宝山区","嘉定区","金山区","松江区","青浦区","奉贤区","崇明县"];
    countyArr["天津市"] = ["和平区","河西区","南开区","河东区","河北区","红桥区","滨海新区","东丽区","西青区","津南区","北辰区","武清区","宝坻区","静海区​","蓟州区"];

    var directionArr =["考研","工作","考公务员"];
        var  employmentStatusArr = new Array();
        employmentStatusArr["考研"] =["考研","升学"];
        employmentStatusArr["工作"] =["短期实习","就业实习","就业未实习","就业工作","在校"];
        employmentStatusArr["考公务员"] =["考公务员"];

    var natureArr =["国有企业","国有控股企业","外资企业","合资企业","私营企业","事业单位","国家行政机关"];
    var industryArr = ["农业","林业","畜牧业","渔业","计算机服务和软件业","采矿业","制造业"," 电力","燃气及水的生产和供应业","建筑业","交通运输","仓储和邮政业" ,"批发和零售业"," 住宿和餐饮业","金融业"," 房地产业"," 租赁和商务服务业" ,"科学研究","技术服务和地质勘查业"," 水利","环境和公共设施管理业" ,"居民服务和其他服务业", "教育","卫生医疗","社会保障和社会福利业" ,"文化、体育和娱乐业"]

    window.onload = function () {
        allDepartment();
        allProvence();
        allCompProvence();
        allFromProvence();
        selectAllteacher();
        allNature();
        allIndustry();
        allDirection();
        posttTypeStatistics();
        employmentRate();
        piechart();
        individualAbility();
        selectAllCompCount();
    };





    function selectAllCompCount(){


        $.ajax({
            url : 'echarts/selectAllCompCount',
            type : "POST",
            success : function(result) {
                if(result!=null){
                    document.getElementById("allCompCount").innerHTML = result;
                }
            },
            error : function(data) {

            }
        });


    }


    function individualAbility(){

        var dom = document.getElementById("individualAbility");
        var myChart = echarts.init(dom);
        var app = {};
        optionAbility = null;
        optionAbility = {
            title: {
                text: '基础雷达图'
            },
            tooltip: {},
            legend: {
                data: ['预算分配（Allocated Budget）', '实际开销（Actual Spending）']
            },
            radar: {
                // shape: 'circle',
                name: {
                    textStyle: {
                        color: '#fff',
                        backgroundColor: '#999',
                        borderRadius: 3,
                        padding: [3, 5]
                    }
                },
                indicator: [
                    { name: '学习能力', max: 100},
                    { name: '业务能力', max: 100},
                    { name: '观察能力', max: 100},
                    { name: '沟通能力', max: 100},
                    { name: '创新能力', max: 100},
                    { name: '抗压能力', max: 100}
                ]
            },
            series: [{
                name: '个人能力雷达图',
                type: 'radar',
                data : [
                    {
                        value : [90, 85, 20, 80, 36, 99],
                        name : '个人能力'
                    }
                ]
            }]
        };;
        if (optionAbility && typeof optionAbility === "object") {
            myChart.setOption(optionAbility, true);
        }


    }
function piechart(){
    var dom = document.getElementById("piechart");
    var myChart = echarts.init(dom);
    var app = {};
    optionpiechart = null;
    app.title = '环形图';
    var  pieChart = [];
    var pieChartname = [];
    $.ajax({
        url : 'echarts/selectPieChart',
        type : "POST",
        success : function(result) {
            if(result!=null){
                pieChart = result;
                optionpiechart.series[0].data=pieChart;
                // optionpiechart.legend.data=pieChart;
                myChart.setOption(optionpiechart, true);
            }
        },
        error : function(data) {

        }
    });

    optionpiechart = {
        tooltip: {
            trigger: 'item',
            formatter: "{a} <br/>{b}: {c} ({d}%)"
        },
        legend: {
            orient: 'vertical',
            x: 'left',
            // data:['考公务员','考研','短期实习','就业实习','就业未实习','就业工作','在校']
        },
        series: [
            {
                name:'访问来源',
                type:'pie',
                radius: ['50%', '70%'],
                avoidLabelOverlap: false,
                label: {
                    normal: {
                        show: false,
                        position: 'center'
                    },
                    emphasis: {
                        show: true,
                        textStyle: {
                            fontSize: '30',
                            fontWeight: 'bold'
                        }
                    }
                },
                labelLine: {
                    normal: {
                        show: false
                    }
                },
                data:[
                    {value:335, name:'就业实习'},
                    {value:310, name:'短期实习'},
                    {value:234, name:'就业未实习'},
                    {value:135, name:'就业工作'},
                    {value:1548, name:'在校'},
                    {value:159, name:'考公务员'},
                    {value:196, name:'考研'}
                ],
                // data:pieChart,
            }
        ]
    };


}



    function employmentRate(){
        var dom = document.getElementById("employmentRate");
        var myChart = echarts.init(dom);
        var app = {};
        option = null;
        option = {
            title: {
            },
            tooltip: {
                trigger: 'axis'
            },
            legend: {
                data:['计算机软件','硬件/运维','经营管理类','市场营销类','贸易业务类','财务类','人力资源类','文职类','客户服务类']
            },
            grid: {
                left: '3%',
                right: '4%',
                bottom: '3%',
                containLabel: true
            },
            toolbox: {
                feature: {
                    saveAsImage: {}
                }
            },
            xAxis: {
                type: 'category',
                boundaryGap: false,
                data: ['2013','2014','2015','2016','2017','2018','2019']
            },
            yAxis: {
                type: 'value'
            },
            series: [
                {
                    name:'计算机软件',
                    type:'line',
                    stack: '计算机软件',
                    data:[96, 95, 95, 96, 97, 99, 98]
                },
                {
                    name:'硬件/运维',
                    type:'line',
                    stack: '硬件/运维',
                    data:[78, 79, 80, 78, 81, 80, 82]
                },
                {
                    name:'经营管理类',
                    type:'line',
                    stack: '经营管理类',
                    data:[45, 46, 47, 47, 45, 46, 48]
                },
                {
                    name:'市场营销类',
                    type:'line',
                    stack: '市场营销类',
                    data:[50, 52, 51, 52, 53, 52, 53]
                },
                {
                    name:'贸易业务类',
                    type:'line',
                    stack: '贸易业务类',
                    data:[88, 85, 86, 89, 87, 85, 86]
                }
            ]
        };
        ;
        if (option && typeof option === "object") {
            myChart.setOption(option, true);
        }
    }




    function posttTypeStatistics(){
        var dom = document.getElementById("container");
        var myChart = echarts.init(dom);
        var app = {};
        option = null;
        app.title = '坐标轴刻度与标签对齐';

        option = {
            color: ['#3398DB'],
            tooltip : {
                trigger: 'axis',
                axisPointer : {            // 坐标轴指示器，坐标轴触发有效
                    type : 'shadow'        // 默认为直线，可选为：'line' | 'shadow'
                }
            },
            grid: {
                left: '3%',
                right: '4%',
                bottom: '3%',
                containLabel: true
            },
            xAxis : [
                {
                    type : 'category',
                    data : ['经营管理类','市场营销类','贸易业务类','财务类','人力资源类','文职类','客户服务类','计算机软件','硬件/运维'],
                    axisTick: {
                        alignWithLabel: true
                    }
                }
            ],
            yAxis : [
                {
                    type : 'value'
                }
            ],
            series : [
                {
                    name:'招聘岗位',
                    type:'bar',
                    barWidth: '60%',
                    data:[4110,2050,5021,3652,698,2010,5241,10001,5002]
                }
            ]
        };
        ;
        if (option && typeof option === "object") {
            myChart.setOption(option, true);
        }
    }


    function allDirection(){
        var stu_compjobdirection = document.getElementById("stu_compjobdirection");
        for(var i = 0; i < directionArr.length; i++)
        {
            var o_l = new Option(directionArr[i],directionArr[i]);
            stu_compjobdirection.options.add(o_l);
        }
    }

    function selectemploymentStatus()
    {
        var stu_compjobdirection = document.getElementById("stu_compjobdirection").value;
        var stu_compjobstatus = document.getElementById("stu_compjobstatus");
        stu_compjobstatus.options.length = 0;
        if(stu_compjobdirection == "")
        {
            var option = new Option("在校","在校");
            stu_compjobstatus.options.add(option);
        }else{
            for(var i = 0; i < employmentStatusArr[stu_compjobdirection].length; i++)
            {
                var o_l = new Option(employmentStatusArr[stu_compjobdirection][i],employmentStatusArr[stu_compjobdirection][i]);
                stu_compjobstatus.options.add(o_l);
            }
        }
    }





    function allIndustry(){
        var stu_compkind = document.getElementById("stu_compkind");
        for(var i = 0; i < industryArr.length; i++)
        {
            var o_l = new Option(industryArr[i],industryArr[i]);
            stu_compkind.options.add(o_l);
        }
    }

    function allNature(){
        var stu_compnature = document.getElementById("stu_compnature");
        for(var i = 0; i < natureArr.length; i++)
        {
            var o_l = new Option(natureArr[i],natureArr[i]);
            stu_compnature.options.add(o_l);
        }
    }

    function selectAllteacher(){
        $.ajax({
            url : 'user/selectAllTeacher',
            type : "POST",
            success : function(result) {
                if(result!=null){
                    for(var i =0;i<result.length;i++){
                        var option = document.createElement("option");
                        $(option).val(result[i].tea_name);
                        $(option).text(result[i].tea_name);
                        $('#stu_compjobguide').append(option);
                    }
                }
            },
            error : function(data) {

            }
        });
    }


    function allFromProvence(){
        var stu_fromprovince = document.getElementById("stu_fromprovince");
        for(var i = 0; i < provenceArr.length; i++)
        {
            var o_l = new Option(provenceArr[i],provenceArr[i]);
            stu_fromprovince.options.add(o_l);
        }
    }

    function selectFromCity()
    {
        var stu_fromprovince = document.getElementById("stu_fromprovince").value;
        var stu_fromcity = document.getElementById("stu_fromcity");
        stu_fromcity.options.length = 0;
        if(stu_fromprovince == "")
        {
            var option = new Option("西安市","西安市");
            stu_fromcity.options.add(option);
        }else{
            for(var i = 0; i < cityArr[stu_fromprovince].length; i++)
            {
                var o_l = new Option(cityArr[stu_fromprovince][i],cityArr[stu_fromprovince][i]);
                stu_fromcity.options.add(o_l);
            }
        }
    }


    function allCompProvence(){
        var stu_compprovince = document.getElementById("stu_compprovince");
        for(var i = 0; i < provenceArr.length; i++)
        {
            var o_l = new Option(provenceArr[i],provenceArr[i]);
            stu_compprovince.options.add(o_l);
        }
    }

    function selectCompCity()
    {
        var stu_compprovince = document.getElementById("stu_compprovince").value;
        var stu_compcity = document.getElementById("stu_compcity");
        stu_compcity.options.length = 0;
        if(stu_compprovince == "")
        {
            var option = new Option("西安市","西安市");
            stu_compcity.options.add(option);
        }else{
            for(var i = 0; i < cityArr[stu_compprovince].length; i++)
            {
                var o_l = new Option(cityArr[stu_compprovince][i],cityArr[stu_compprovince][i]);
                stu_compcity.options.add(o_l);
            }
        }
    }

    function selectCompCounty()
    {
        var stu_compcity = document.getElementById("stu_compcity").value;
        var stu_compcounty = document.getElementById("stu_compcounty");
        stu_compcounty.options.length = 0;
        if(stu_compcity == "")
        {
            var option = new Option("雁塔区","雁塔区");
            stu_compcounty.options.add(option);
        }else{
            for(var i = 0; i < countyArr[stu_compcity].length; i++)
            {
                var o_l = new Option(countyArr[stu_compcity][i],countyArr[stu_compcity][i]);
                stu_compcounty.options.add(o_l);
            }
        }
    }

    function allProvence(){
        var stu_province = document.getElementById("stu_province");
        for(var i = 0; i < provenceArr.length; i++)
        {
            var o_l = new Option(provenceArr[i],provenceArr[i]);
            stu_province.options.add(o_l);
        }
    }

    function selectCity()
    {
        var stu_province = document.getElementById("stu_province").value;
        var stu_city = document.getElementById("stu_city");
        stu_city.options.length = 0;
        if(stu_province == "")
        {
            var option = new Option("西安市","西安市");
            stu_city.options.add(option);
        }else{
            for(var i = 0; i < cityArr[stu_province].length; i++)
            {
                var o_l = new Option(cityArr[stu_province][i],cityArr[stu_province][i]);
                stu_city.options.add(o_l);
            }
        }
    }

    function selectCounty()
    {
        var stu_city = document.getElementById("stu_city").value;
        var stu_county = document.getElementById("stu_county");
        stu_county.options.length = 0;
        if(stu_city == "")
        {
            var option = new Option("雁塔区","雁塔区");
            stu_county.options.add(option);
        }else{
            for(var i = 0; i < countyArr[stu_city].length; i++)
            {
                var o_l = new Option(countyArr[stu_city][i],countyArr[stu_city][i]);
                stu_county.options.add(o_l);
            }
        }
    }


    var arr = ["人文学院","艺术学院","健康管理学院","经济管理学院","马克思主义学院","城乡规划与建筑工程学院","数学与计算机应用学院","电子信息与电信工程学院","化学工程与现代材料学院","生物医药与食品工程学院"];
    var proList = new Array();

    proList["经济管理学院"] = ["信息管理与信息系统", "电子商务", "会计学", "文化产业管理","财务管理"];
    proList["人文学院"] = ["汉语言文学", "英语", "秘书学", "历史学", "网络与新媒体"];
    proList["艺术学院"] = ["美术学", "音乐学", "学前教育"];
    proList["健康管理学院"] = ["护理学", "应用心理学", "康复治疗学", "食品卫生与营养学"];
    proList["马克思主义学院"] = ["思想政治教育"];
    proList["城乡规划与建筑工程学院"] = ["地理科学", "人文地理与城乡规划", "工程管理", "土木工程"];
    proList["数学与计算机应用学院"] = ["数学与应用数学", "计算机科学与技术", "网络工程", "应用统计学"];
    proList["电子信息与电信工程学院"] = ["物理学", "电子信息科学与技术","电子信息工程","电气工程及其自动化"];
    proList["化学工程与现代材料学院"] = ["化学", "应用化学", "金属材料工程", "资源循环科学与工程"];
    proList["生物医药与食品工程学院"] = ["园林", "生物技术","食品科学与工程","制药工程"];


    function allDepartment(){
        var stu_department = document.getElementById("stu_department");
        for(var i = 0; i < arr.length; i++)
        {
            var o_l = new Option(arr[i],arr[i]);
            stu_department.options.add(o_l);
        }
    }

    function selectProfession()
    {
        var stu_department = document.getElementById("stu_department").value;
        var stu_profession = document.getElementById("stu_profession");

        stu_profession.options.length = 0;
        if(stu_department == "")
        {
            var option = new Option("信息管理与信息系统","信息管理与信息系统");
            stu_profession.options.add(option);
        }else{
            for(var i = 0; i < proList[stu_department].length; i++)
            {
                var o_l = new Option(proList[stu_department][i],proList[stu_department][i]);
                stu_profession.options.add(o_l);
            }
        }
    }


 var username= window.sessionStorage.getItem("stu_u_name");
 document.getElementById("currentuser").innerHTML = username;
    function clicklogo(){
        window.location.href = "index";
    };
    function clickComp(){
        window.location.href = "showCompInfoIndex";
    };
    function general(){
        window.location.href = "general";
    };

    function resumeInfo(){
        window.location.href = "resumeInfo";
    };


    function TimeTable(){
        window.location.href = "stutimetable";
    };
    function sut_stroke(){
        window.location.href = "sut_stroke";
    };


    function compshow(){
        window.location.href = "compshow";
    };


    function attentcompshow(){
        window.location.href = "attentcompshow";
    };

 function submitStuBaseInfo(){
     var stu_province = document.getElementById("stu_province").value;
     var stu_city = document.getElementById("stu_city").value;
     var stu_county = document.getElementById("stu_county").value;
     var stu_fromprovince = document.getElementById("stu_fromprovince").value;
     var stu_fromcity = document.getElementById("stu_fromcity").value;
     var stu_sex = document.getElementById("stu_sex").value;
     var stu_politics = document.getElementById("stu_politics").value;

     var stu_name = document.getElementById("stu_name").value;
     var stu_sex = document.getElementById("stu_sex").value;
     var stu_idcard = document.getElementById("stu_idcard").value;
     var stu_tel = document.getElementById("stu_tel").value;
     var stu_counselor = document.getElementById("stu_counselor").value;
     if(stu_name == null || stu_name==''){
         swal("姓名不能为空!", "请输入姓名以完成基础信息完善", "error");
         return false;
     }
     if(stu_sex == null || stu_sex==''){
         swal("性别不能为空!", "请选择性别以完成基础信息完善", "error");
         return false;
     }
     if(stu_idcard == null || stu_idcard==''){
         swal("身份证号码不能为空!", "请输入身份证号码以完成基础信息完善", "error");
         return false;
     }
     if(stu_tel == null || stu_tel==''){
         swal("电话号码不能为空!", "请输入电话号码以完成基础信息完善", "error");
         return false;
     }
     if(stu_counselor == null || stu_counselor==''){
         swal("辅导员姓名不能为空!", "请输入辅导员姓名以完成基础信息完善", "error");
         return false;
     }
     var data = $( '#myFormInfo').serialize();//表单序列化 form表单的id属性值
     data = data+"&stu_province ="+stu_province+"&stu_city="+stu_city+"&stu_county="+stu_county+"&stu_fromprovince = "+stu_fromprovince+"&stu_fromcity="+stu_fromcity+"&stu_politics="+stu_politics+"&stu_sex="+stu_sex;
     $.ajax({
         url : 'user/submitStuBaseInfo',
         type : "POST",
         data:data,
         success : function(result) {
              if(result=='已保存'){
                  swal("保存成功!", "您的个人基础信息已经录入本系统!", "success");
              }else{

              }
         },
         error : function(data) {

         }
     });
 }

 function selectStuBaseInfo(){
     $.ajax({
         url : 'user/selectStuBaseInfo',
         type : "POST",
         success : function(result) {
          if(result!=null){

             if(result.stu_address!='0'){
                 document.getElementById("stu_address").value=result.stu_address;
             }
             if(result.stu_address=='undefined'||result.stu_address==undefined){
                 document.getElementById("stu_address").value='';
             }

             if(result.stu_counselor!='0'){
                 document.getElementById("stu_counselor").value=result.stu_counselor;
             }
              if(result.stu_counselor=='undefined'||result.stu_counselor==undefined){
                  document.getElementById("stu_counselor").value='';
              }

             if(result.stu_ec!='0'){
                 document.getElementById("stu_ec").value=result.stu_ec;
             }
              if(result.stu_ec=='undefined'||result.stu_ec==undefined){
                  document.getElementById("stu_ec").value='';
              }

             if(result.stu_ectel!='0'){
                 document.getElementById("stu_ectel").value=result.stu_ectel;
             }
              if(result.stu_ectel=='undefined'||result.stu_ectel==undefined){
                  document.getElementById("stu_ectel").value='';
              }

             if(result.stu_email!='0'){
                 document.getElementById("stu_email").value=result.stu_email;
             }
              if(result.stu_email=='undefined'||result.stu_email==undefined){
                  document.getElementById("stu_email").value='';
              }


             if(result.stu_idcard!='0'){
                 document.getElementById("stu_idcard").value=result.stu_idcard;
             }
              if(result.stu_idcard=='undefined'||result.stu_idcard==undefined){
                  document.getElementById("stu_idcard").value='';
              }

             if(result.stu_name!='0'){
                 document.getElementById("stu_name").value=result.stu_name;
             }
              if(result.stu_name=='undefined'||result.stu_name==undefined){
                  document.getElementById("stu_name").value='';
              }

             if(result.stu_qq!='0'){
                 document.getElementById("stu_qq").value=result.stu_qq;
             }
              if(result.stu_qq=='undefined'||result.stu_qq==undefined){
                  document.getElementById("stu_qq").value='';
              }

             if(result.stu_tel!='0'){
                 document.getElementById("stu_tel").value=result.stu_tel;
             }
              if(result.stu_tel=='undefined'||result.stu_tel==undefined){
                  document.getElementById("stu_tel").value='';
              }

              if(result.stu_province!='0'){
                  document.getElementById("stu_province").value=result.stu_province;
              }
              if(result.stu_province=='undefined'||result.stu_province==undefined){
                  document.getElementById("stu_province").value='';
              }

              if(result.stu_city!='0'){
                  // document.getElementById("stu_profession").value=result.stu_profession;
                  var option = document.createElement("option");
                  $(option).val(result.stu_city);
                  $(option).text(result.stu_city);
                  $('#stu_city').append(option);
              }
              if(result.stu_city=='undefined'||result.stu_city==undefined){
                  document.getElementById("stu_city").value='';
              }

              if(result.stu_county!='0'){
                  // document.getElementById("stu_profession").value=result.stu_profession;
                  var option = document.createElement("option");
                  $(option).val(result.stu_county);
                  $(option).text(result.stu_county);
                  $('#stu_county').append(option);
              }
              if(result.stu_county=='undefined'||result.stu_county==undefined){
                  document.getElementById("stu_county").value='';
              }

              if(result.stu_fromprovince!='0'){
                  document.getElementById("stu_fromprovince").value=result.stu_fromprovince;
              }
              if(result.stu_fromprovince=='undefined'||result.stu_fromprovince==undefined){
                  document.getElementById("stu_fromprovince").value='';
              }

              if(result.stu_fromcity!='0'){
                  // document.getElementById("stu_profession").value=result.stu_profession;
                  var option = document.createElement("option");
                  $(option).val(result.stu_fromcity);
                  $(option).text(result.stu_fromcity);
                  $('#stu_fromcity').append(option);
              }
              if(result.stu_fromcity=='undefined'||result.stu_fromcity==undefined){
                  document.getElementById("stu_fromcity").value='';
              }

              if(result.stu_sex!='0'){
                  document.getElementById("stu_sex").value=result.stu_sex;
              }
              if(result.stu_sex=='undefined'||result.stu_sex==undefined){
                  document.getElementById("stu_sex").value='';
              }

              if(result.stu_politics!='0'){
                  document.getElementById("stu_politics").value=result.stu_politics;
              }
              if(result.stu_politics=='undefined'||result.stu_politics==undefined){
                  document.getElementById("stu_politics").value='';
              }



          }
         },
         error : function(data) {

         }
     });
 }
 function fix(num, length) {
     return ('' + num).length < length ? ((new Array(length + 1)).join('0') + num).slice(-length) : '' + num;
 }

 function submitStuStatusInfo(){
     var stu_education = document.getElementById("stu_education").value;
     var stu_inway = document.getElementById("stu_inway").value;
     var stu_inTime = document.getElementById("stu_inTime").value;
     var stu_outTime = document.getElementById("stu_outTime").value;
     var stu_profession = document.getElementById("stu_profession").value;

     var stu_code = document.getElementById("stu_code").value;
     var stu_department = document.getElementById("stu_department").value;
     var stu_class = document.getElementById("stu_class").value;
     if(stu_code == null || stu_code==''){
         swal("学号不能为空!", "请输入学号以完成学籍信息完善", "error");
         return false;
     }
     if(stu_department == null || stu_department==''){
         swal("院系不能为空!", "请选择所在院系以完成学籍信息完善", "error");
         return false;
     }
     if(stu_profession == null || stu_profession==''){
         swal("专业不能为空!", "请选择专业以完成学籍信息完善", "error");
         return false;
     }
     if(stu_class == null || stu_class==''){
         swal("班级不能为空!", "请输入班级以完成学籍信息完善", "error");
         return false;
     }
     if(stu_education == null || stu_education==''){
         swal("学历不能为空!", "请选择学历以完成学籍信息完善", "error");
         return false;
     }
     var data = $( '#myFormStatus').serialize();//表单序列化 form表单的id属性值
     data = data+'&stu_education='+stu_education+'&stu_inway='+stu_inway+'&stu_inTime='+stu_inTime+'&stu_outTime='+stu_outTime+"&stu_profession="+stu_profession;
     $.ajax({
         url : 'user/submitStuStatusInfo',
         data:data,
         success : function(result) {
             if(result=='已保存'){
                 swal("保存成功!", "您的个人学籍信息已经录入本系统!", "success");
             }else{

             }
         },
         error : function(data) {

         }
     });
 }

 function selectStuStatusInfo(){



     $.ajax({
         url : 'user/selectStuStatusInfo',
         type : "POST",
         success : function(result) {
             document.getElementById("stu_schoolname").value='商洛学院';
             if(result!=null){

                 if(result.stu_code!='0'){
                     document.getElementById("stu_code").value=result.stu_code;
                 }
                 if(result.stu_code=='undefined'||result.stu_code==undefined){
                     document.getElementById("stu_code").value='';
                 }

                 if(result.stu_department!='0'){
                     document.getElementById("stu_department").value=result.stu_department;
                 }
                 if(result.stu_department=='undefined'||result.stu_department==undefined){
                     document.getElementById("stu_department").value='';
                 }

                 if(result.stu_profession!='0'){
                     // document.getElementById("stu_profession").value=result.stu_profession;
                     var option = document.createElement("option");
                     $(option).val(result.stu_profession);
                     $(option).text(result.stu_profession);
                     $('#stu_profession').append(option);
                 }
                 if(result.stu_profession=='undefined'||result.stu_profession==undefined){
                     document.getElementById("stu_profession").value='';
                 }

                 if(result.stu_class!='0'){
                     document.getElementById("stu_class").value=result.stu_class;
                 }
                 if(result.stu_class=='undefined'||result.stu_class==undefined){
                     document.getElementById("stu_class").value='';
                 }

                 if(result.stu_education!='0'){
                     document.getElementById("stu_education").value=result.stu_education;
                 }
                 if(result.stu_education=='undefined'||result.stu_education==undefined){
                     document.getElementById("stu_education").value='';
                 }

                 if(result.stu_inway!='0'){
                     document.getElementById("stu_inway").value=result.stu_inway;
                 }
                 if(result.stu_inway=='undefined'||result.stu_inway==undefined){
                     document.getElementById("stu_inway").value='';
                 }

                 if(result.stu_inTime!='0'){
                     document.getElementById("stu_inTime").value=result.stu_inTime;
                 }
                 if(result.stu_inTime=='undefined'||result.stu_inTime==undefined){
                     document.getElementById("stu_inTime").value='';
                 }

                 if(result.stu_outTime!='0'){
                     document.getElementById("stu_outTime").value=result.stu_outTime;
                 }
                 if(result.stu_outTime=='undefined'||result.stu_outTime==undefined){
                     document.getElementById("stu_outTime").value='';
                 }


             }
         },
         error : function(data) {

         }
     });
 }




 function submitStuJobInfo(){
     var stu_compprovince = document.getElementById("stu_compprovince").value;
     var stu_compcity = document.getElementById("stu_compcity").value;
     var stu_compcounty = document.getElementById("stu_compcounty").value;
     var data = $( '#myFormJob').serialize();//表单序列化 form表单的id属性值
     data = data+"&stu_compprovince ="+stu_compprovince+"&stu_compcity="+stu_compcity+"&stu_compcounty="+stu_compcounty;
     var stu_compjobstatus = $("#stu_compjobstatus")["0"].selectedOptions["0"].innerText;
     data = data+'&stu_compjobstatus='+stu_compjobstatus;
     $.ajax({
         url : 'user/submitStuJobInfo',
         data:data,
         success : function(result) {
             swal("保存成功!", "您的个人就业信息已经录入本系统!", "success");
         },
         error : function(data) {

         }
     });
 }


 function selectStuJobInfo(){
     $.ajax({
         url : 'user/selectStuJobInfo',
         type : "POST",
         success : function(result) {
             if(result!=null){
                 if(result.stu_compagreement!='0'){
                     document.getElementById("stu_compagreement").value=result.stu_compagreement;
                 }
                 if(result.stu_compagreement=='undefined'||result.stu_compagreement==undefined){
                     document.getElementById("stu_compagreement").value='';
                 }

                 if(result.stu_compjobstatus!='0'){
                     var option = document.createElement("option");
                     $(option).val(result.stu_compjobstatus);
                     $(option).text(result.stu_compjobstatus);
                     $('#stu_compjobstatus').append(option);
                 }
                 if(result.stu_compjobstatus=='undefined'||result.stu_compjobstatus==undefined){
                     document.getElementById("stu_compjobstatus").value='';
                 }

                 if(result.stu_updateagreement!='0'){
                     document.getElementById("stu_updateagreement").value=result.stu_updateagreement;
                 }
                 if(result.stu_updateagreement=='undefined'||result.stu_updateagreement==undefined){
                     document.getElementById("stu_updateagreement").value='';
                 }

                 if(result.stu_compname!='0'){
                     document.getElementById("stu_compname").value=result.stu_compname;
                 }
                 if(result.stu_compname=='undefined'||result.stu_compname==undefined){
                     document.getElementById("stu_compname").value='';
                 }

                 if(result.stu_compcode!='0'){
                     document.getElementById("stu_compcode").value=result.stu_compcode;
                 }
                 if(result.stu_compcode=='undefined'||result.stu_compcode==undefined){
                     document.getElementById("stu_compcode").value='';
                 }

                 if(result.stu_compnature!='0'){
                     document.getElementById("stu_compnature").value=result.stu_compnature;
                 }
                 if(result.stu_compnature=='undefined'||result.stu_compnature==undefined){
                     document.getElementById("stu_compnature").value='';
                 }

                 if(result.stu_compkind!='0'){
                     document.getElementById("stu_compkind").value=result.stu_compkind;
                 }
                 if(result.stu_compkind=='undefined'||result.stu_compkind==undefined){
                     document.getElementById("stu_compkind").value='';
                 }

                 if(result.stu_compaddress!='0'){
                     document.getElementById("stu_compaddress").value=result.stu_compaddress;
                 }
                 if(result.stu_compaddress=='undefined'||result.stu_compaddress==undefined){
                     document.getElementById("stu_compaddress").value='';
                 }

                 if(result.stu_compjob!='0'){
                     document.getElementById("stu_compjob").value=result.stu_compjob;
                 }
                 if(result.stu_compjob=='undefined'||result.stu_compjob==undefined){
                     document.getElementById("stu_compjob").value='';
                 }

                 if(result.stu_compjobguide!='0'){
                     document.getElementById("stu_compjobguide").value=result.stu_compjobguide;
                 }
                 if(result.stu_compjobguide=='undefined'||result.stu_compjobguide==undefined){
                     document.getElementById("stu_compjobguide").value='';
                 }



                 if(result.stu_compprovince!='0'){
                     document.getElementById("stu_compprovince").value=result.stu_compprovince;
                 }
                 if(result.stu_compprovince=='undefined'||result.stu_compprovince==undefined){
                     document.getElementById("stu_compprovince").value='';
                 }

                 if(result.stu_compcity!='0'){
                     var option = document.createElement("option");
                     $(option).val(result.stu_compcity);
                     $(option).text(result.stu_compcity);
                     $('#stu_compcity').append(option);
                 }
                 if(result.stu_compcity=='undefined'||result.stu_compcity==undefined){
                     document.getElementById("stu_compcity").value='';
                 }

                 if(result.stu_compcounty!='0'){
                     var option = document.createElement("option");
                     $(option).val(result.stu_compcounty);
                     $(option).text(result.stu_compcounty);
                     $('#stu_compcounty').append(option);
                 }
                 if(result.stu_compcounty=='undefined'||result.stu_compcounty==undefined){
                     document.getElementById("stu_compcounty").value='';
                 }


             }
         },
         error : function(data) {

         }
     });
 }


 function deleteAcount(){
     swal({
         title: "确认注销账号吗?",
         text: "账号一旦注销,将无法找回,注册不易,且行且珍惜",
         icon : "warning",
         dangerMode : true,
         buttons : [ "考虑一下", "含泪注销"],
     }).then(function(ok){
         if (ok) {
             $.ajax({
                 url : 'user/studeleteAcount',
                 method : 'delete',
                 dataType : 'json',
                 success : function(result) {
                     if(result == '已注销'){
                         swal("注销成功!", "期待您下次使用本系统!", "success");
                         window.location.href = "login";
                     }else{
                         swal("注销失败!", "你的账户目前不能被注销!", "error");
                     }
                 },
                 error : function(data) {
                     swal("注销成功!", "期待您下次使用本系统!", "success");
                     window.location.href = "login";
                 }
             });
         }else{
             swal("很开心您放弃了本次操作!");
         }
     });


 }

    function loginout(){

        swal({
            title: "确认退出当前账号吗?",
            icon : "warning",
            dangerMode : true,
            buttons : [ "取消", "确认"],
        }).then(function(ok){
            if (ok) {
                $.ajax({
                    url : "/user/stuloginout",//url 统一资源定位符
                    type : "POST",
                    success : function(result) {
                        if(result == '已退出'){
                            window.location.href = "login";
                            swal("退出成功!", "再次登录请前往登陆页面", "success");
                        }else{
                            swal("退出失败!", "用户名或密码出现错误", "error");
                        }
                    },
                    error : function(data) {
                        swal("退出成功!", "再次登录请前往登陆页面", "success");
                    }
                });
            }else{
                swal("很开心您放弃了本次操作!");
            }
        });




    }



 function checkpwd(){
     var u_oldpwd = document.getElementById("u_oldpwd").value;
     if(u_oldpwd == null || u_oldpwd==''){
         swal("原密码不能为空!", "请输入原密码进行密码修改", "error");
         return false;
     }
     $.ajax({
         url : "/user/stucheckpwd?u_oldpwd="+u_oldpwd,//url 统一资源定位符
         type : "POST",
         success : function(result) {
             if(result == '密码存在'){

             }else{
                 swal("原密码错误", "如忘记密码可在登录页进行忘记密码操作", "error");
             }
         },
         error : function(data) {

         }
     });
 }

 function submitpwd(){
     var u_newpwd = document.getElementById("u_newpwd").value;
     var u_surenewpwd = document.getElementById("u_surenewpwd").value;

     if(u_newpwd == null || u_newpwd==''){
         swal("新密码不能为空!", "请输入新密码进行密码修改", "error");
         return false;
     }

     if(u_newpwd.length<7){
         swal("新密码须超过6位!", "请重新输入", "error");
         document.getElementById("u_newpwd").value="";
         document.getElementById("u_surenewpwd").value="";
         return false;
     }
     if(u_newpwd != u_surenewpwd ){
         swal("两次密码不一致", "请重新输入密码", "error");
         document.getElementById("u_newpwd").value="";
         document.getElementById("u_surenewpwd").value="";
         return false;
     }
     $.ajax({
         url : "/user/stuupdatepwd?u_newpwd="+u_newpwd,//url 统一资源定位符
         type : "POST",
         success : function(result) {
             if(result == '已修改'){
                 swal("修改成功!", "下次登陆请使用新密码进行登录", "success");
             }else{
                 swal("原密码错误", "如忘记密码可在登录页进行忘记密码操作", "error");
             }
         },
         error : function(data) {

         }
     });
 }

    function stuOnline(){
        window.location.href = "stuOnline";
    };

</script>




</body>
</html>
